from django.urls import path
from . import views

app_name = 'log_analysis'

urlpatterns = [
    # 页面视图
    path('dashboard/', views.dashboard, name='dashboard'),
    path('logs/', views.logs, name='logs'),
    path('log-viewer/', views.log_viewer, name='log_viewer'),
    path('file-logs/', views.file_logs, name='file_logs'),
    path('reports/', views.reports, name='reports'),
    
    # API接口
    path('api/system-stats/', views.system_stats, name='api_system_stats'),
    path('api/log-files/', views.get_log_files, name='api_log_files'),
    path('api/log-content/', views.get_log_content, name='api_log_content'),
    path('api/dashboard-data/', views.ajax_dashboard_data, name='api_dashboard_data'),
    path('api/file-statistics/', views.file_statistics, name='api_file_statistics'),
]